Skip to main content
Version: 11.0

Topology APIs

GET /api/v2/topology/detail/default

Description

Get the list of links between devices and device details to build and study the device topology map.

Header Parameters

NameDescriptionTypeRequiredDefault
AuthorizationBearer API token/key. The format is Bearer <API_key>StringYes
orgIdThe ID of the organization. The format is OrgId:OrgNameStringYes
siteIdThe ID of the site. The format is SiteId:SiteNameStringYes

Query Parameters

NameDescriptionTypeRequiredDefault
daysThe number of days to go back toIntegerNo1
hiddenDevicesFlag for showing/hiding hidden devices. If enabled, the result will include the hidden devicesBooleanNofalse
viewTopology view (svg/canvas)StringNosvg
enrichBooleanNo
forceBooleanNo
persistBooleanNo

CURL Example

The below code snippet shows an example of the API call, where <NCE-IP>, <ORG-ID>, <SITE-ID> & <API-TOKEN> are variables.

curl --location 'https://<NCE-IP>/api/v2/topology/detail/default?days=14&view=svg' \
--header 'orgId: <ORG-ID>' \
--header 'siteId: <SITE-ID>' \
--header 'Authorization: Bearer <API-TOKEN>'

Response

Upon a successful request, the API returns Status code 200 with the following body:

NameDescriptionType
linksList of links between devicesArray of objects
- linkIdLink IDString
- devAIdDevice A IDString
- devBIdDevice B IDString
- devANameDevice A hostnameString
- devBNameDevice B hostnameString
- devAIfxNameDevice A interface nameString
- devBIfxNameDevice B interface nameString
- linkTypeLink types listArray of strings
- linkOperStateLink operational stateString
- vlanSetVLans listArray of strings
- linkRankLink dispay rankInteger
- devAIfxStateDevice A interface stateString
- devBIfxStateDevice B interface stateString
- operStateADevice A operational stateString
- operStateBDevice B operational stateString
- vnetIdString
- noOfLinksLinks numberInteger
devicesList of devices included in the topologyArray of objects
- orgIdOrganization IDString
- siteIdSite IDString
- deviceIdDevice IDString
- hostNameDevice hostnameString
- vmNameDevice VM nameString
- vendorDevice vendor nameString
- modelDevice modelString
- platformDevice platform nameString
- platformTypeDevice platform typeString
- versionDevice platform versionString
- serialNumberDevice serial numberString
- devTypeDevice typeString
- devSubTypeDevice subtypeString
- ipAddressList of IPv4 addresses associated with the deviceArray of strings
- ipv6AddressList of IPv6 addresses associated with the deviceArray of strings
- discoveredIpSetList of IPv4 addresses used in device discoveryArray of strings
- fqdnDevice fully qualified domain name (FQDN)String
- fqdnListDevice fully qualified domain names listArray of strings
- domainNameDevice domain nameString
- isVirtualBoolean yes/no if the device is virtualString
- reachableListList of protocols able to connect with the deviceArray of strings
- unreachableListList of protocols able to connect with the device. Each element in the object is constructed by "protocol":"Failure_reason"Object
- deviceStatusDevice statusString
- deviceSubStatusDevice sub statusString
- managersList of device managers names and IPsObject of string tuples
- parentsList of device parent IDsArray of strings
- parentHostNamesList of device parents hostnamesArray of strings
- d3ParentsList of device 3D parentsArray of strings
- clustersList of device cluster IDsArray of strings
- gatewaySetList of device gateway IDsArray of strings
- servicesList of services running on the deviceArray
-- fsAppRoleService roleString
-- fsServiceService nameString
- serviceStatusString
- cloudBoolean true/false if is a cloud deviceBoolean
- vnetIdString
- sourceThe source of the discovery informationString
- discoveredBoolean true/false if the device is considered discovered. Devices discovered by more than ping protocol are considered discoveredBoolean
- lastCMDBUpdateTimeLast time the record was pushed to the CMDB. The format is timeyyyy-MM-ddThh:mm:ss.tttZString
- lastDiscoveredLast time when the device was discovered. The format is timeyyyy-MM-ddThh:mm:ss.tttZString
storageDevicesList of storage devices. The object structure is the same as deviceArray of objects
coordinatesList of coordinates on the topology map for each deviceArray of objects
- deviceIdDevice IDString
- xDevice X position on the topology mapString
- yDevice Y position on the topology mapString
disconnectedDevicesList of devices with no links. The object structure is the same as deviceArray of objects
imanStatusNot in useNull
applicationAlertStatusNot in useNull
applicationEventStatusNot in useNull

POST /api/v2/topology/group

Description

Get the list of links between devices and device details for a particular device group.

Header Parameters

NameDescriptionTypeRequiredDefault
AuthorizationBearer API token/key. The format is Bearer <API_key>StringYes
orgIdThe ID of the organization. The format is OrgId:OrgNameStringYes
siteIdThe ID of the site. The format is SiteId:SiteNameStringYes

Query Parameters

NameDescriptionTypeRequiredDefault
hiddenDevicesFlag for showing/hiding hidden devices. If enabled, the result will include the hidden devicesBooleanNofalse
viewTopology view (svg/canvas)StringNosvg
forceBooleanNo
persistBooleanNo

Body Parameters

NameDescriptionTypeRequiredDefault
filterListContainerFilter with the group ID. The format is JSON. Example {"filterMap":{"deviceGroupId": ["<groupID>"]}}ObjectYes

CURL Example

The below code snippet shows an example of the API call, where <NCE-IP>, <ORG-ID>, <SITE-ID>, <API-TOKEN> & <GROUP-ID> are variables.

curl --location 'https://<NCE-IP>/api/v2/topology/group?view=svg' \
--header 'orgId: <ORG-ID>' \
--header 'siteId: <SITE-ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API-TOKEN>' \
--data '{
"filterMap":
{
"deviceGroupId": [
"<GROUP-ID>"
]
}
}'

Response

Upon a successful request, the API returns Status code 200. The response model is the same as the response for GET /api/v2/topology/detail/default

GET /api/v2/topology/undiscovered

Description

Get the list of undiscovered devices. Includes all links that have only one link end (A or B) and the other end is an unknown device that is not yet discovered.

Header Parameters

NameDescriptionTypeRequiredDefault
AuthorizationBearer API token/key. The format is Bearer <API_key>StringYes
orgIdThe ID of the organization. The format is OrgId:OrgNameStringYes
siteIdThe ID of the site. The format is SiteId:SiteNameStringYes

Query Parameters

NameDescriptionTypeRequiredDefault
viewTopology view (svg/canvas)StringNosvg

CURL Example

The below code snippet shows an example of the API call, where <NCE-IP>, <ORG-ID>, <SITE-ID> & <API-TOKEN> are variables.

curl --location 'https://<NCE-IP>/api/v2/topology/undiscovered' \
--header 'orgId: <ORG-ID>' \
--header 'siteId: <SITE-ID>' \
--header 'Authorization: Bearer <API-TOKEN>'

Response

Upon a successful request, the API returns Status code 200. The response model is the same as the response for GET /api/v2/topology/detail/default

Description

Get details for a particular link by link ID.

Header Parameters

NameDescriptionTypeRequiredDefault
AuthorizationBearer API token/key. The format is Bearer <API_key>StringYes
orgIdThe ID of the organization. The format is OrgId:OrgNameStringYes
siteIdThe ID of the site. The format is SiteId:SiteNameStringYes

Query Parameters

NameDescriptionTypeRequiredDefault
linkIdLlink IDStringYes
pagePage number, starting from 1StringNo1
sizeNumber of devices per page. Minimum size is 1StringNo10
sortSorting criteria in the format: property, (asc, desc). Multiple sort criteria are supportedStringNo

CURL Example

The below code snippet shows an example of the API call, where <NCE-IP>, <ORG-ID>, <SITE-ID>, <API-TOKEN> & <LINK-ID> are variables.

curl --location 'https://<NCE-IP>/api/v2/topology/link/memberLink?linkId=<LINK-ID>&page=1&size=10' \
--header 'orgId: <ORG-ID>' \
--header 'siteId: <SITE-ID>' \
--header 'Authorization: Bearer <API-TOKEN>'

Response

Upon a successful request, the API returns Status code 200 with the following body:

NameDescriptionType
linkIdLink IDString
devAIdDevice A IDString
devAIfxNameDevice A interface nameString
devAIfxStateDevice A interface stateString
devANameDevice A hostnameString
devBIdDevice B IDString
devBIfxNameDevice B interface nameString
devBIfxStateDevice B interface stateString
devBNameDevice B hostnameString
linkOperStateLink operational stateString
linkRankLink dispay rankInteger
linkTypeLink types listArray of strings
noOfLinksLinks numberInteger
operStateADevice A operational stateString
operStateBDevice B operational stateString
vlanSetVLans listArray of strings
vnetIdString